package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

@TableName("kss_product")
public class Product implements java.io.Serializable {

    // 产品ID
    @TableId(type = IdType.ID_WORKER)
    private Long productId;
    // 产品标题
    private String productTitle;
    // 产品描述
    private String productDesc;
    // 产品价格
    private BigDecimal productPrice;
    // 产品的创建时间
    private Date createTime;
    // 产品的封面
    private String productImg;
    // 产品的状态 0 未发布 1发布
    private String status;

    public Product() {

    }

    public Product(Long productId, String productTitle, String productDesc, BigDecimal productPrice, Date createTime, String productImg, String status) {
        this.productId = productId;
        this.productTitle = productTitle;
        this.productDesc = productDesc;
        this.productPrice = productPrice;
        this.createTime = createTime;
        this.productImg = productImg;
        this.status = status;
    }


    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", productTitle='" + productTitle + '\'' +
                ", productDesc='" + productDesc + '\'' +
                ", productPrice=" + productPrice +
                ", createTime=" + createTime +
                ", productImg='" + productImg + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
